import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
// import get from '@dfeidao/atom-web/local/get';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import refresh from '@dfeidao/atom-web/url/refresh';
export default async function a003(fd: IFeidaoAiBrowserComponent) {
	// todo
	// 修改弹窗
	/*	const ov = get(fd, "data-ov");
		const vd = get(fd, "data-vd");
		const vn = get(fd, "data-vn");
		console.log(ov);
		console.log(vd);
		console.log(vn);*/
	/*	const plan_cla_attr_name = fd.data.node.querySelector<HTMLInputElement>('[data-id="nameid"]')
		const name = plan_cla_attr_name.value;// 修改后数据
		console.log("名字", name);
		if (name === "") {
			alert("请输入完整数据");
		} else {
			const r = await nodejs<{ code: 0 | 1 }>('basic-data-wzz/zj-000004/s001', {
				data: {
					plan_cla_attr_no: no,
					plan_cla_attr_name: name
				}
			})
			console.log(r);
			if (r.code === 1) {
				alert("修改成功");
				refresh();
			}
		}
		*/
	const r = await nodejs<{ code: 0 | 1 }>('basic-data-wzz/zj-000004/s001', {
		data: {
			// optional_value: ,
			// value_description:
		}
	});
	console.log(r);
	if (r.code === 1) {
		alert("修改成功");
		refresh();
	}
}
